<?php
$this->breadcrumbs=array(
	'Admin Panel'=>$this->createUrl( '/adminpanel'),
	'Landlords'=>array('index'),
	$model->id,
);

$this->menu=array(
	array('label'=>'List Landlord', 'url'=>array('index')),
	array('label'=>'Create Landlord', 'url'=>array('create')),
	array('label'=>'Update Landlord', 'url'=>array('update', 'id'=>$model->id)),
	array('label'=>'Delete Landlord', 'url'=>'#', 'linkOptions'=>array('submit'=>array('delete','id'=>$model->id),'confirm'=>'Are you sure you want to delete this item?')),
	array('label'=>'Manage Landlord', 'url'=>array('admin')),
);
?>

<h1>View Landlord #<?php echo $model->id; ?></h1>

<h2> Personal Details </h2>
<?php 
$user=User::model()->findByPk($model->iduser);
$this->widget('zii.widgets.CDetailView', array(
	'data'=>$user,
	'attributes'=>array(
		'FirstName',
		'LastName',
		'userName',
		'Password',
		'email',
		'Status',
		array(
			'name' => 'Password Change Date',
			'value' => (($user->PasswordChangeDate)?date("d M, Y H:i:s",$user->PasswordChangeDate):'Not Available'),
		),
		array(
			'name' => 'last visit',
			'value' => (($user->lastvisite)?date("d M, Y H:i:s",$user->lastvisite):'Not visited'),
		),
		array(
			'name' => 'Join',
			'value' => date("d M, Y H:i:s",$user->createTime),
		)
	),
)); ?>
<br />
<h2> Mangement Company Details </h2>
<?php $this->widget('zii.widgets.CDetailView', array(
	'data'=>$model,
	'attributes'=>array(
		'CompanyName',
		'StreetAddress',
		'SecondLineAddress',
		'City',
		'State',
		'ZipCode',
		'PhoneNumber',
		'FaxNumber',
		'EmailAddress',
		'SoftwareTitle',
		'NumberProperties',
		'PayPalAccountAddress',
		
	),
)); ?>

<?php //echo 'here';
$this->widget(
    'CTreeView',
    array('url' => array('ajaxFillTree'))
);
?>
